<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>我的订单</title>
  <meta name="renderer" content="webkit"/>
  <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
  <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
</head>
<body>
<div>
  <a href="{:url('UserRelateInfo/my_order')}?status=0">待支付</a>&nbsp;&nbsp;
  <a href="{:url('UserRelateInfo/my_order')}?status=1">待发货</a>&nbsp;&nbsp;
  <a href="{:url('UserRelateInfo/my_order')}?status=2">待收货</a>&nbsp;&nbsp;
  <a href="{:url('UserRelateInfo/my_order')}?status=3">待评价</a>&nbsp;&nbsp;
</div>
{foreach name="list" item="vo"}
<div style="font-size:10px;">
  <p>{$vo.addtime|date="Y-m-d H:i",###}下单&nbsp;&nbsp;&nbsp;&nbsp;{if condition="$status eq 0"}待付款{elseif condition="$status eq 1" /}待发货{elseif condition="$status eq 2" /}待收货{else /}待评价{/if}</p>
  <a href="{:url('UserRelateInfo/order_detail')}?id={$vo.id}"><p>{$vo.order_sn}</p></a>
  <img src="{$vo.logo}" width="40px;" height="40px;">
  <p>共计：{$vo.final_amount}</p>
  <!--订单状态,0待支付，1待发货，2已确认，3商家已发货，4已收货，5申请退货，6退货完成，7订单完成，8订单已取消（超过30分钟未支付就置为取消状态）-->
  <div>
    {if condition="$vo.order_status eq 0"}
    <a href="#">去支付</a>
    <a href="#">取消</a>
    {elseif condition="$vo.order_status eq 1" /}
    <a href="#">取消</a>
    {elseif condition="($vo.order_status gt 1) AND ($vo.order_sattus lt 4)" /}
    <a href="#">确认收货</a>
    {elseif condition="$vo.order_status eq 4" /}
    <a href="#">去评价</a>
    {/if}
  </div>
</div>
{/foreach}
</body>
</html>